Probs setting up Apache Web Server

Setting up a local web server on OS X by etresoft


The above note works pretty well for setting up Apache on Mavericks, but two things don't happen as advertized.


1) http://<short machine name/ goes to my ISP's default page for non-existend domain names. However http://<local IP address> works fine.


2) http://<local IP address>/~<Short user name> returns a 403 Forbidden.


I have set the file system permission on ~/Sites and ~/Sites/index.html.en to 777 without fixing the problem.


Any help available?


I can't find a way to post this directly as a reply to the note itself.

MacBook Pro with Retina display, OS X Mavericks (10.9.5)

Posted on Jun 16, 2015 11:16 PM

Reply
1 reply

Mar 28, 2016 9:49 PM in response to wrishel

Hi,

I had a similar problem until I finally noticed that the user configuration under /etc/apache2/users/<your short user name>.conf was not seen by apache for the following reason:

/etc/apache2/httpd.conf contains an import to find the user configuration:

# User home directories

#Include /private/etc/apache2/extra/httpd-userdir.conf


This line was commented, and needs to be uncommented with sudo vi /etc/apache2/httpd.conf

Include /private/etc/apache2/extra/httpd-userdir.conf


Double check /etc/apache2/extra/httpd-userdir.conf. It should contain the line:

Include /private/etc/apache2/users/*.conf


which actually looks are your user configuration for your directories.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Probs setting up Apache Web Server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.